document.addEventListener('plusready',function(){
	plus.nativeUI.closeWaiting();
	var ws = plus.webview.currentWebview();
	var aid = ws.aid;
	var lists = plus.storage.getItem('melist');
	var melist = $.parseJSON(lists);
	var list = '';
	$.each(melist, function(k,v) {
		if(v.aid == aid){
			$('.title').text(v.title);
			$('.introduce').html(v.introduce);
			//室长
			if(v.chiefid){
				var str = '<div class="famous-doctor-boss mui-table-view-cell mui-table-view overflow-h" data-id="'+v.chiefid+'">'+
							'<div><img src="'+webRoot+v.chiefInfo.photo+'" alt=""/></div>'+
							'<div>'+
								'<li class="mui-h4">'+
									'<span>'+v.chiefInfo.name+'</span>'+
									'<span class="font-15">'+v.chiefInfo.resign+'</span>'+
								'</li>'+
								'<li class="ellipsis-3">'+
									'<span>简介：</span>'+
									'<span>'+v.chiefInfo.experience+'</span>'+
								'</li>'
							'</div>'
						'</div>';
				$('.chiefdiv').html(str);
			}
			//医生
			var list = '';
			if(v.doctorInfo){
				$.each(v.doctorInfo, function(k1,v1) {
					list += '<div class="famous-doctor-boss famous-doctor-doctor-2 mui-table-view-cell mui-table-view overflow-h" data-id="'+v1.aid+'">'+
								'<div><img src="'+(v1.photo?webRoot+v1.photo:'../images/icon1.png')+'" alt="" /></div>'+
								'<div>'+
									'<li class="mui-h4">'+
										'<span>'+v1.name+'</span>'	+
									'</li>'+
									'<li class="font-14">'+
										'<span>'+v1.resign+'</span>'+
									'</li>'+
								'</div>'+
								'<div class="ellipsis-3 clear-both font-13">'+
									'<span>简介：</span>'+v1.experience+
								'</div>'+
							'</div>';
				});
				$('.doctor').html(list);
			}
			
			$('.famous-doctor-boss').on('click',function(){
				goNewPage('home-famous-doctor.html',{aid:$(this).attr('data-id')});
			})
		}
	});
},false)